// const obj = {
//   name: 'imooc',
//   course: 'es'
// }
// const desc = Object.getOwnPropertyDescriptors(obj)
// console.log(desc);


const obj = {}
Reflect.defineProperty(obj,'name',{
  value:'xiecheng',
  writable:true,
  configurable:false,
  enumerable:true
})
console.log(obj);
obj.name = 'zhangsan'
console.log(obj);
delete obj.name
console.log(obj);


